# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-pyacoustid
pkgver=1.3.0
pkgrel=1
pkgdesc="Python bindings for Chromaprint acoustic fingerprinting and the Acoustid Web service"
url="https://acoustid.org/chromaprint"
arch="noarch"
license="MIT"
depends="
	chromaprint
	py3-audioread
	py3-requests
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/beetbox/pyacoustid/archive/refs/tags/v$pkgver/pyacoustid-$pkgver.tar.gz"
builddir="$srcdir/pyacoustid-$pkgver"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
3ae5fb15af3491f7509fac618f456917496f8fe52c0ce697a43770c91f566ad3791007aef2e2f817e6babc5ff972a28f7a962f41cdbb86ca723451ca59d2ee7e  pyacoustid-1.3.0.tar.gz
"
